package com.wd.elec;

import com.wd.elec.server.UDPServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @className: Application
 * @description: TODO 类描述
 * @author: liumingkun
 * @date: 2023/11/2
 **/

@SpringBootApplication
@ComponentScan(basePackages = {"com.wd"})
@MapperScan(basePackages = {"com.wd.*.mapper"})
@EnableScheduling
public class Application {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(Application.class, args);
//        UDPServer udpServer = context.getBean(UDPServer.class);
//        udpServer.startServer();
    }
}
